﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ShippingReview.aspx.cs"
    Inherits="WMS6.Web.Outbound.ShippingReview" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>ShippingReview</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />

    <script src="../Js/jquery.js" type="text/javascript"></script>

    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script>

    <script src="../Js/util.js" type="text/javascript"></script>

    <script src="../Js/InitPage.js" type="text/javascript"></script>

    <script src="../Js/checkbox.js" type="text/javascript"></script>

    <script src="../Js/Verification.js" type="text/javascript"></script>

    <script type="text/javascript">
        //初始化页面
        window.onload = function() {
            initEditNewPage();

        }       
    </script>

</head>
<body>
    <div style="display: none">
        <object id="qtForm" classid="clsid:18E6FD94-05A1-4C86-B6A9-C9C4CB178236" codebase="qtForm.ocx"
            width="256" height="43" align="center" hspace="0" vspace="0">
        </object>
    </div>
    
    <script type="text/javascript">
        function doSetting() {
            qtForm.doSetting();
        }
        function doPrint() {
            var whID = document.getElementById("hdnWHID").value;
            var ownerID = document.getElementById("hdnOwnerID").value;
            var orderID = document.getElementById("hdnOrderID").value;
            qtForm.doPrint("PrintShippingOrderList", whID, orderID, ownerID);
            qtForm.doPrint("PrintHandoverNote", whID, orderID, ownerID);
        }
        function doPrintView() {
            var whID = document.getElementById("hdnWHID").value;
            var ownerID = document.getElementById("hdnOwnerID").value;
            var orderID = document.getElementById("hdnOrderID").value;
            qtForm.doPrintView("PrintShippingOrderList", whID, orderID, ownerID);
            qtForm.doPrintView("PrintHandoverNote", whID, orderID, ownerID);
        }
    </script>

    <form id="F7081" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div>
        <div id="div_top">            
            <table>
                <tr>
                    <td valign="bottom">
                        <asp:Label ID="lblASN" runat="server" CssClass="label_header" Text="出库复核" meta:resourcekey="lblASN"></asp:Label>
                    </td>
                     <td>
                        <asp:Button ID="btnUpdateScanQty" runat="server" CssClass="button" Enabled="false" Text="修改扫描数量"  OnClick="btnUpdateScanQty_Click"  OnClientClick="blockScreen();"
                            AccessKey="b" />
                    </td>
                    <td>
                        <asp:Button ID="btnRefresh" runat="server" CssClass="button" Enabled="false" Text="刷新"
                            AccessKey="b" />
                    </td>
                    <td>
                        <asp:Button ID="btnConfirm" runat="server" CssClass="button" Enabled="false" Text="确认"
                            OnClick="btnConfirm_Click" AccessKey="b" Visible="false" />
                    </td>
                </tr>
            </table>
        </div>
          <asp:UpdatePanel ID="UpdatePanel1" runat="server">
          <ContentTemplate>
        <div>
            <asp:Label ID="lblMsg" runat="server" CssClass="label_message" meta:resourcekey="lblMsg"></asp:Label>
        </div>
               
        <div id="div_content" style="height: 700px; overflow-y: hidden;">
            <div id="con_one_1" style="display: block; overflow-x: hidden; overflow-y: hidden;">
                <table width="760px" style="display: block; margin-left: 10px; margin-top: 10px;">
                    <tr>
                        <td style="width: 180px">
                            <asp:Label CssClass="label" ID="lblOrderID" runat="server" Text="波次单/发货订单号" meta:resourcekey="lblOrderID"></asp:Label><font
                                color="red">*</font>
                        </td>
                        <td style="width: 180px">
                            <asp:Label CssClass="label" ID="lblOrderType" runat="server" Text="波次单/发货订单类型"></asp:Label>
                        </td>
                        <td style="width: 100px">
                            <asp:Label CssClass="label" ID="lblOrderCount" runat="server" Text="订单数"></asp:Label>
                        </td>
                        <td style="width: 100px">
                            <asp:Label CssClass="label" ID="lblSkuSytleCount" runat="server" Text="品种数"></asp:Label>
                        </td>
                        <td style="width: 100px">
                            <asp:Label CssClass="label" ID="lblQty" runat="server" Text="数量"></asp:Label>
                        </td>
                        <td style="width: 100px">
                            <asp:Label CssClass="label" ID="lblOrderDetailCount" runat="server" Text="订单行数"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:TextBox ID="txtOrderID" runat="server" CssClass="textbox" meta:resourcekey="txtOrderID"
                                OnTextChanged="txtOrderID_OnTextChanged" AutoPostBack="true"></asp:TextBox>
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlOrderType" runat="server" CssClass="mediumselectbox" meta:resourcekey="ddlCustomsType" OnTextChanged="txtOrderID_OnTextChanged" AutoPostBack="true" >
                            </asp:DropDownList>
                        </td>
                        <td>
                            <asp:TextBox ID="txtOrderCount" Enabled="false" runat="server" Width="70px"></asp:TextBox>
                        </td>
                        <td>
                            <asp:TextBox ID="txtSkuStyleCount" Enabled="false" runat="server" Width="70px"></asp:TextBox>
                        </td>
                        <td>
                            <asp:TextBox ID="txtQty" Enabled="false" runat="server" Width="70px"></asp:TextBox>
                        </td>
                        <td>
                            <asp:TextBox ID="txtOrderDetailQty" Enabled="false" runat="server" Width="70px"></asp:TextBox>
                        </td>
                    </tr>                     
                </table>
            </div>
            <div  style="height: 10px;">
              
            </div>
            <div style=" overflow-y:auto; height:255px; width:1000px">
                <asp:GridView ID="gvOutboundReview" runat="server" AllowSorting="False" AutoGenerateColumns="False"
                    PageSize="10" CssClass="gridview" OnRowDataBound="gvOutboundReview_RowDataBound"
                    DataKeyNames="OrderID,Status,OwnerID" Width="1000px" meta:resourcekey="gvOutboundReview"
                    OnSelectedIndexChanging="gvOutboundReview_SelectedIndexChanging">
                    <FooterStyle CssClass="GridViewFooterStyle" />
                    <RowStyle CssClass="GridViewRowStyle" />
                    <HeaderStyle CssClass="FixedHeader" />
                    <PagerStyle CssClass="GridViewPageStyle" />
                    <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                    <Columns>
                        <asp:BoundField HeaderText="序号" FooterText="序号" meta:resourcekey="No">
                            <ItemStyle CssClass="GridViewRowWidth_40" />
                        </asp:BoundField>
                        <asp:TemplateField ShowHeader="False" meta:resourcekey="TemplateFieldResource2">
                            <ItemTemplate>
                                <asp:LinkButton ID="lnkbtnSelectOwner" runat="server" CausesValidation="False" CommandName="Select"  
                                    Text="">
                                    <img src="../Images/select.gif" runat="server" id="gvimg" class="img" style="border: none 0px blue;"
                                        alt="select" />
                                </asp:LinkButton>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50" />
                        </asp:TemplateField>
                          <asp:TemplateField FooterText="状态" HeaderText="状态" 
                            meta:resourcekey="ReceiveDate">
                            <ItemTemplate >
                                <asp:Image ID="StatusImg" runat="server" />
                            </ItemTemplate>
                            <ItemStyle CssClass="GridViewRowWidth_100" HorizontalAlign="Center" />
                        </asp:TemplateField>
                       
                          <asp:TemplateField FooterText="发货订单号" HeaderText="发货订单号">
                            <ItemTemplate>
                                <asp:Label ID="lblOrderID" runat="server" Text='<%# Eval("OrderID") %>'></asp:Label>
                            </ItemTemplate>
                            <ItemStyle CssClass="GridViewRowWidth_100" />
                        </asp:TemplateField>
                        
                        <asp:BoundField DataField="CaseID" HeaderText="箱号" FooterText="箱号" SortExpression="CaseID">
                            <ItemStyle CssClass="GridViewRowWidth_100" />
                        </asp:BoundField>
                        <asp:TemplateField FooterText="品种数量" HeaderText="品种数量">
                            <ItemTemplate>
                                <asp:Label ID="lblSkuGroupCount" runat="server" Text='<%# GetPreferenceDigit(Eval("SkuGroupCount").ToString()) %>'></asp:Label>
                            </ItemTemplate>
                            <ItemStyle CssClass="GridViewRowWidth_100" />
                        </asp:TemplateField>
                        <asp:TemplateField FooterText="数量" HeaderText="数量">
                            <ItemTemplate>
                                <asp:Label ID="lblTotalQty" runat="server" Text='<%# GetPreferenceDigit(Eval("TotalQty").ToString()) %>'></asp:Label>
                            </ItemTemplate>
                            <ItemStyle CssClass="GridViewRowWidth_100" />
                        </asp:TemplateField>
                        <asp:TemplateField FooterText="复核数量" HeaderText="复核数量" SortExpression="ReviewQty">
                            <ItemTemplate>
                                <asp:Label ID="lblReviewQty" runat="server" Text='<%# GetPreferenceDigit(Eval("ReviewQty").ToString()) %>'></asp:Label>
                            </ItemTemplate>
                            <ItemStyle CssClass="GridViewRowWidth_100" />
                        </asp:TemplateField>
                        <asp:BoundField DataField="ReferenceNum" HeaderText="销售订单号" FooterText="销售订单号" SortExpression="ReferenceNum">
                            <ItemStyle CssClass="GridViewRowWidth_100" />
                        </asp:BoundField>
                        <asp:BoundField DataField="ExternOrderID" HeaderText="外部订单号" FooterText="外部订单号" SortExpression="ExternOrderID">
                            <ItemStyle CssClass="GridViewRowWidth_100" />
                        </asp:BoundField>
                        <asp:BoundField DataField="StatusD" HeaderText="订单状态" FooterText="订单状态" SortExpression="StatusD"
                            meta:resourcekey="StatusD">
                            <ItemStyle CssClass="GridViewRowWidth_100" />
                        </asp:BoundField>
                    </Columns>
                </asp:GridView>
            </div>
            <div style="height: 10px;">
            </div>
            <div style=" overflow-y:auto; overflow-x:auto; height:160px; width:1190px">
                <asp:GridView ID="gvOutboundReviewDetail" runat="server" AllowSorting="false" AutoGenerateColumns="False"
                    CssClass="gridview" DataKeyNames="OrderID,LineID,Status,SkuDescr,PickedQty,OriginalQty,ReviewQty"
                    OnRowDataBound="gvOutboundReviewDetail_RowDataBound" Width="1600px">
                    <FooterStyle CssClass="GridViewFooterStyle" />
                    <RowStyle CssClass="GridViewRowStyle" />
                    <HeaderStyle CssClass="FixedHeader" />
                    <PagerStyle CssClass="GridViewPageStyle" />
                    <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                    <Columns>
                        <asp:BoundField HeaderText="序号" FooterText="序号" meta:resourcekey="No">
                            <ItemStyle CssClass="GridViewRowWidth_40" />
                        </asp:BoundField>
                           <asp:TemplateField FooterText="状态" HeaderText="状态" 
                            meta:resourcekey="ReceiveDate">
                            <ItemTemplate >
                                <asp:Image ID="StatusImg" runat="server" />
                            </ItemTemplate>
                            <ItemStyle CssClass="GridViewRowWidth_100" HorizontalAlign="Center" />
                        </asp:TemplateField>
                        <asp:TemplateField FooterText="货品代码" HeaderText="货品代码" >
                            <ItemTemplate>
                                <asp:Label ID="lblSkuID" runat="server" Text='<%# Eval("SkuID") %>'
                                    meta:resourcekey="lblSkuID"></asp:Label>
                            </ItemTemplate>
                            <ItemStyle CssClass="GridViewRowWidth_100" />
                        </asp:TemplateField>                        
                        <asp:TemplateField FooterText="货品描述" HeaderText="货品描述" SortExpression="SkuDescr"
                            meta:resourcekey="SkuDescr">
                            <ItemTemplate>
                                <asp:Label ID="lblSkuDescr" runat="server" Text='<%# Eval("SkuDescr") %>'
                                    meta:resourcekey="lblSkuDescr"></asp:Label>
                            </ItemTemplate>
                            <ItemStyle CssClass="GridViewRowWidth_200" />
                        </asp:TemplateField>
                        <asp:TemplateField FooterText="拣货数量" HeaderText="拣货数量" SortExpression="PickedQty">
                            <ItemTemplate>
                                <asp:Label ID="lblPickedQty" runat="server" Text='<%# GetPreferenceDigit(Eval("PickedQty").ToString()) %>'></asp:Label>
                            </ItemTemplate>
                            <ItemStyle CssClass="GridViewRowWidth_100" />
                        </asp:TemplateField>
                        <asp:TemplateField FooterText="复核数量" HeaderText="复核数量" SortExpression="ReviewQty">
                            <ItemTemplate>
                                <asp:Label ID="lblReviewQty" runat="server" Text='<%# GetPreferenceDigit(Eval("ReviewQty").ToString()) %>'></asp:Label>
                            </ItemTemplate>
                            <ItemStyle CssClass="GridViewRowWidth_100" />
                        </asp:TemplateField>
                        <asp:BoundField DataField="LotAttr01" HeaderText="外部批号" FooterText="外部批号" SortExpression="LotAttr01"
                            meta:resourcekey="LotAttr01">
                            <ItemStyle CssClass="GridViewRowWidth_100" />
                        </asp:BoundField>
                        <asp:TemplateField FooterText="入库日期" HeaderText="入库日期" SortExpression="ReceiveDate"
                            meta:resourcekey="ReceiveDate">
                            <ItemTemplate>
                                <asp:Label ID="lblReceiveDate" runat="server" Text='<%# GetPreferenceShortDate(Eval("ReceiptDate").ToString()) %>'
                                    meta:resourcekey="lblReceiveDate"></asp:Label>
                            </ItemTemplate>
                            <ItemStyle CssClass="GridViewRowWidth_100" />
                        </asp:TemplateField>
                        <asp:TemplateField FooterText="生产日期" HeaderText="生产日期" SortExpression="PRODUCE_DATE"
                            meta:resourcekey="PRODUCEDATE">
                            <ItemTemplate>
                                <asp:Label ID="lblProduceDate" runat="server" Text='<%# GetPreferenceShortDate(Eval("ProduceDate").ToString()) %>'></asp:Label>
                            </ItemTemplate>
                            <ItemStyle CssClass="GridViewRowWidth_100" />
                        </asp:TemplateField>
                        <asp:TemplateField FooterText="失效日期" HeaderText="失效日期" SortExpression="" meta:resourcekey="ExpireDate">
                            <ItemTemplate>
                                <asp:Label ID="lblExpiryDate" runat="server" Text='<%# GetPreferenceShortDate(Eval("ExpiryDate").ToString()) %>'></asp:Label>
                            </ItemTemplate>
                            <ItemStyle CssClass="GridViewRowWidth_100" />
                        </asp:TemplateField>
                        <asp:BoundField DataField="LotAttr01" HeaderText="批次属性01" FooterText="批次属性01" SortExpression="LotAttr01"
                            meta:resourcekey="LotAttr01">
                            <ItemStyle CssClass="GridViewRowWidth_100" />
                        </asp:BoundField>
                        <asp:BoundField DataField="LotAttr02" HeaderText="批次属性02" FooterText="批次属性02" SortExpression="LotAttr02"
                            meta:resourcekey="LotAttr02">
                            <ItemStyle CssClass="GridViewRowWidth_100" />
                        </asp:BoundField>
                        <asp:BoundField DataField="LotAttr03" HeaderText="批次属性03" FooterText="批次属性03" SortExpression="LotAttr03"
                            meta:resourcekey="LotAttr03">
                            <ItemStyle CssClass="GridViewRowWidth_100" />
                        </asp:BoundField>
                        <asp:BoundField DataField="LotAttr04" HeaderText="批次属性04" FooterText="批次属性04" SortExpression="LotAttr04"
                            meta:resourcekey="LotAttr04">
                            <ItemStyle CssClass="GridViewRowWidth_100" />
                        </asp:BoundField>
                        <asp:BoundField DataField="LotAttr05" HeaderText="批次属性05" FooterText="批次属性05" SortExpression="LotAttr05"
                            meta:resourcekey="LotAttr05">
                            <ItemStyle CssClass="GridViewRowWidth_100" />
                        </asp:BoundField>
                    </Columns>
                </asp:GridView>
            </div>
         
            <div>
                <table width="720px" style="display: block; margin-left: 10px; margin-top: 10px;">
                    <tr>
                        <td style="width: 180px">
                           <asp:Label CssClass="label" ID="lblSkuDesc" runat="server" Text="货品描述" meta:resourcekey="lblSkuDescr"></asp:Label>
                        </td>
                        <td  style="width: 180px"></td>
                        <td style="width: 180px">
                            <asp:Label CssClass="label" ID="lblCaseID" runat="server" Text="箱号"></asp:Label>
                        </td>
                        <td rowspan="6" style="width: 180px">
                            <img id="SkuImg" runat="server" />
                        </td>
                        <td style="width: 180px">
                            <asp:Label CssClass="label" ID="lblOrdersQty" runat="server" Text="订货数量"></asp:Label>
                        </td>
                        
                    </tr>
                    <tr>
                        <td colspan="2">
                           <asp:TextBox ID="txtSkuDesc" runat="server" CssClass="textbox" Enabled="false" Width="320px"></asp:TextBox>
                           
                        </td>
                        <td rowspan="6">
                        <asp:TextBox ID="txtCaseID" runat="server" CssClass="textbox"  
                           Font-Size="85px" ForeColor="Blue" 
                            Height="100px" MaxLength="2" Width="110px" Font-Bold="True" 
                            Font-Italic="False" Font-Strikeout="False"></asp:TextBox>
                        </td>
                        <td>
                            <asp:TextBox ID="txtOrdersQty" runat="server" CssClass="textbox" meta:resourcekey="txtBarcode"
                                Enabled="false"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 180px">
                           <asp:Label CssClass="label" ID="lblUomID" runat="server" Text="单位"></asp:Label>
                        </td>
                         <td>
                          <asp:Label CssClass="label" ID="lblSMQty" runat="server" Text="数量"></asp:Label>
                         </td>
                        <td style="width: 180px">
                            <asp:Label CssClass="label" ID="lblPickedQty" runat="server" Text="拣货数量" meta:resourcekey="lblSkuDescr"
                               ></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:DropDownList ID="ddlUomID" runat="server" Enabled="false" CssClass="mediumselectbox">
                            <asp:ListItem Text="件"></asp:ListItem>
                            </asp:DropDownList>
                        </td>
                         <td>
                          <asp:TextBox ID="txtSMQty" runat="server" CssClass="textbox" Text="1" Enabled="false" ></asp:TextBox>
                         </td>
                        <td>
                            <asp:TextBox ID="txtPickedQty" runat="server" CssClass="textbox" Enabled="false"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 180px">
                           <asp:Label CssClass="label" ID="lblBarcode" runat="server" Text="条码" meta:resourcekey="lblSkuDescr"></asp:Label>
                        </td>
                         <td><asp:Label CssClass="label" ID="lblOrdersID" runat="server" Text="订单号"></asp:Label></td>
                        <td style="width: 180px">
                            <asp:Label CssClass="label" ID="lblReviewQty" runat="server" Text="复核数量" meta:resourcekey="lblSkuDescr"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td>
                          <asp:TextBox ID="txtBarcode" runat="server" CssClass="textbox" OnTextChanged="txtBarcode_OnTextChanged"
                                AutoPostBack="true"></asp:TextBox>
                        </td>
                         <td><asp:TextBox ID="txtOrdersID" runat="server" CssClass="textbox" meta:resourcekey="txtSkuDescr"
                                Enabled="false"> </asp:TextBox></td>
                        <td>
                            <asp:TextBox ID="txtReviewQty" runat="server" CssClass="textbox" Enabled="false"></asp:TextBox>
                            <asp:Label ID="lblStatus" runat="server" CssClass="label" Enabled="true"></asp:Label>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
         <input id="hdnActionID" type="hidden" runat="server" />
        <input type="hidden" id="hdnOrderLineID" runat="server" />
        <input type="hidden" id="hdnOrderID" runat="server" />
        <input type="hidden" id="hdnSkuID" runat="server" />
        <input type="hidden" id="hdnGvCss" runat="server" />
        <input type="hidden" id="hdnGvDCss" runat="server" />
        <input type="hidden" id="hdnIndex" runat="server" />
        <input type="hidden" id="hdnWHID" runat="server" />
        <input type="hidden" id="hdnOwnerID" runat="server" />
        </ContentTemplate>
        </asp:UpdatePanel>
       
    </div>
    </form>
</body>
</html>
